import request from '@/utils/request'

// 查询位置历史记录列表
export function listLocationHistory(query) {
  return request({
    url: '/system/LocationHistory/list',
    method: 'get',
    params: query
  })
}

// 查询位置历史记录详细
export function getLocationHistory(recordId) {
  return request({
    url: '/system/LocationHistory/' + recordId,
    method: 'get'
  })
}

// 新增位置历史记录
export function addLocationHistory(data) {
  return request({
    url: '/system/LocationHistory',
    method: 'post',
    data: data
  })
}

// 修改位置历史记录
export function updateLocationHistory(data) {
  return request({
    url: '/system/LocationHistory',
    method: 'put',
    data: data
  })
}

// 删除位置历史记录
export function delLocationHistory(recordId) {
  return request({
    url: '/system/LocationHistory/' + recordId,
    method: 'delete'
  })
}
